package com.springboot.ding.monitor;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * @description:
 * @author: zyj
 * @create: 2020-07-23 17:31
 **/
public class MonitorQueue {

    final static int pool = 100;

    static LinkedBlockingQueue<Runnable> blockingQueue ;

    private MonitorQueue(){}


    //单例队列
    public static LinkedBlockingQueue<Runnable> getMonitorQueue(){
        if(null == blockingQueue){
            blockingQueue = new LinkedBlockingQueue<>(pool);
        }
        return blockingQueue;
    }


}
